﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="LookReservation.aspx.cs"
    Inherits="WebUI.Reservation.LookReservation" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <ext:PageManager runat="server" ID="PageManager1" AutoSizePanelID="Panel1" />
    <ext:Panel runat="server" ID="Panel1" BodyPadding="5px" EnableBackgroundColor="true"
        ShowBorder="false" Layout="Anchor" ShowHeader="true" Title="预约课表查询">
        <Items>
            <ext:Form runat="server" ID="Form2" LabelWidth="90px" Height="74px" EnableBackgroundColor="true"
                ShowHeader="false" ShowBorder="true" BodyPadding="10px" AutoWidth="true">
                <Toolbars>
                    <ext:Toolbar ID="Toolbar1" runat="server" Position="Top">
                        <Items>
                            <ext:Button runat="server" ID="bn_search" Text="查询" Icon="Reload" Type="Submit" ValidateForms="Form2" OnClick="bnSearch_Click">
                            </ext:Button>
                            <ext:Button runat="server" ID="bn_reset" Text="重置" Icon="ArrowIn" Type="Reset" OnClick="bnReset_Click">
                            </ext:Button>
                            </Items>
                    </ext:Toolbar>
                </Toolbars>
                <Rows>
                <ext:FormRow>
                <Items>
                <ext:DatePicker runat="server" ID="dp_upDate" Label="起始日期" Width="200px" ></ext:DatePicker>
                <ext:DatePicker runat="server" ID="dp_downDate" Label="终止日期" Width="200px" ></ext:DatePicker>
                </Items>
                </ext:FormRow>
                </Rows>
            </ext:Form>
            <ext:Grid runat="server" ID="Grid1" AnchorValue="100% -84px" ShowHeader="false" EnableBackgroundColor="true"
                EnableRowNumber="true" AllowPaging="true" OnPageIndexChange="Grid1_PageIndexChange" PageSize="25" >
                <Columns>
                <ext:BoundField DataField="date" Width="120px" HeaderText="日期" DataFormatString="{0:D}" />
                    <ext:BoundField DataField="lessonValue.value" HeaderText="课时节次" />
                    <ext:BoundField DataField="labValue.LabName" Width="180px" HeaderText="实验室" />
                    <ext:BoundField DataField="used" Width="200px" HeaderText="预约用途" />
                    <ext:BoundField DataField="userValue.name" Width="90px" HeaderText="申请人" />
                </Columns>
            </ext:Grid>
        </Items>
    </ext:Panel>
    </form>
</body>
</html>
